import { createStore, combineReducers, compose } from "redux";
import home from "./reducers/home";
import news from "./reducers/news";
// 安装调试工具

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const reducer = combineReducers({
  HomeReducer: home,
  NewsReducer: news
});
const store = createStore(reducer, /* preloadedState, */ composeEnhancers());

export default store;
